﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 考试日志
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.jsonParse(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    //[fastCSharp.code.cSharp.webView.clientType(Name = "diantou.examLog")]
    [fastCSharp.code.cSharp.sqlModel]
    public partial class examLog
    {
        /// <summary>
        /// 考试用户标识
        /// </summary>
        public int UserId;
        /// <summary>
        /// 考试毫秒时间戳
        /// </summary>
        public uint Times;
        /// <summary>
        /// 日志操作相关编号
        /// </summary>
        public short Index;
        /// <summary>
        /// 日志类型
        /// </summary>
        public enum type : byte
        {
            /// <summary>
            /// 设置进度条位置
            /// </summary>
            SetLoad = 1,
            /// <summary>
            /// 获取并切换问题
            /// </summary>
            GetQuestion = 2,
            /// <summary>
            /// 显示问题并设置用户答案
            /// </summary>
            ShowAnswer = 3,
            /// <summary>
            /// 点击单选现
            /// </summary>
            SetRadioAnswer = 4,
            /// <summary>
            /// 点击多选项
            /// </summary>
            SetMultipleAnswer = 5,
            /// <summary>
            /// 修改问答题答案
            /// </summary>
            SetQuestion = 6,
        }
        /// <summary>
        /// 日志类型
        /// </summary>
        [fastCSharp.code.cSharp.webView.outputAjax(IsIgnoreCurrent = true)]
        public type Type;
        /// <summary>
        /// 日志操作相关内容
        /// </summary>
        [fastCSharp.emit.dataMember(MaxStringLength = 128 << 10)]
        public string Content = string.Empty;
    }
}
